<?php
/* SVN FILE: $Id$ */
/* MgAgente Test cases generated on: 2009-06-06 01:06:09 : 1244271129*/
App::import('Model', 'MgAgente');

class MgAgenteTestCase extends CakeTestCase {
	var $MgAgente = null;
	var $fixtures = array('app.mg_agente', 'app.mg_tipo_agente', 'app.tc_movimientos_diario');

	function startTest() {
		$this->MgAgente =& ClassRegistry::init('MgAgente');
	}

	function testMgAgenteInstance() {
		$this->assertTrue(is_a($this->MgAgente, 'MgAgente'));
	}

	function testMgAgenteFind() {
		$this->MgAgente->recursive = -1;
		$results = $this->MgAgente->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('MgAgente' => array(
			'id'  => 1,
			'descripcion'  => 'Lorem ipsum dolor sit amet',
			'mg_tipo_agente_id'  => 1,
			'created'  => '2009-06-06',
			'modified'  => '2009-06-06',
			'adicionado_por'  => 'Lorem ipsum dolor ',
			'modificado_por'  => 'Lorem ipsum dolor '
			));
			$this->assertEqual($results, $expected);
	}
}
?>